#pragma once

namespace DbReader
{
	class TerminationException
	{};

	void ClearTerminationFlag(SEngineData* ed);
	bool ShouldTerminate(SEngineData* ed);
	void SetTerminationFlag(SEngineData* ed);

#define CHECK_TERMINATE(ED) { if(ShouldTerminate((ED))) throw new TerminationException();  }

}